PATHMac OS 8 and 9 Developer Documentation > Networking and Communications > URL Access Manager >

Transferring Files With the URL Access Manager


URLGetCurrentState

Gets the current state of a URL.
OSStatus URLGetCurrentState (
URLReference urlRef, URLState* state);
urlRef
A reference of type URLReference that identifies the URL whose state information you want to obtain.
state
A pointer to a value of type URLState . On return, state contains the current state of the URL.
function result
A result code. For a list of possible result codes, see Result Codes .

DISCUSSION

The URLGetCurrentState function obtains the current state of a data transfer with respect to the specified URL.

The following state constants can be returned at any time:

kURLNullState
kURLInitiatedState
kURLResourceFoundState
kURLDownloadingState
kURLAbortingState
kURLTransactionCompleteState
kURLErrorOccurredState
kURLUploadingState

The following state constants can be returned if the fileSpec parameter was NULL when your application called URLOpen :

kURLDataAvailableState , kURLTransactionCompleteState

F or a description of these constants, see State Constants .


© 1999 Apple Computer, Inc. – (Last Updated 07 May 99)